package polymorphic;

/**
 * @classname:Driver
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 17:23
 * @version: 0.1
 * @since:1.8
 */
public class Driver {
    public static void main(String[] args) {
        Car bwm = new BWM("宝马","白色","4");
        Car ben = new Ben("奔驰","黑色","4");
        Driver.driver(bwm);
        Driver.driver(ben);

    }
    public static void driver(Car car){
        car.run();
    }
}
